package dparish.client.rf;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;

import dparish.client.proxy.CommonEntityProxy;

/**
 * This interface is here so that all entities can use the same base request factory methods. The problem is it, doesn't work.
 * @see <a href="http://code.google.com/p/google-web-toolkit/issues/detail?id=6794">GWT bug</a>
 * 
 * I'll leave this here so if this is fixed it can be refactored, but for now this class (disappointingly) is not being used.
 * @author dparish
 *
 * @param <Entity>
 */
public interface CommonEntityRequest<Entity extends CommonEntityProxy> extends RequestContext{
	Request<List<Entity>> findAll();
	Request<Void> store(Entity entity);

}
